﻿using System.Text.Json.Serialization;

namespace K9Nano.AspNetCore.Filters;

public sealed class ApiLoggingWrapper
{
    [JsonIgnore]
    public const string Name = nameof(ApiLoggingWrapper);

    public object? Arguments { get; }

    public object? Result { get; set; }

    public string? DisplayName { get;  }

    public string ControllerName { get;  }

    public string ActionName { get; }


    public ApiLoggingWrapper(string controllerName, string actionName, string? displayName, object? arguments)
    {
        ControllerName = controllerName;
        ActionName = actionName;
        DisplayName = displayName;
        Arguments = arguments;
    }
}
